// 更新Token倒计时
export const updateTokenExpired = (): void => {
  const interval = setInterval(() => {
    let countdown = parseInt(localStorage.expired)
    console.log(countdown)
    countdown--
    if (countdown <= 0)
      clearInterval(interval)
    else
      localStorage.expired = countdown.toString()
  }, 1000)
}
